import http from '@/service/http'
import type * as T from '@/types/api/index'
const detailApi: T.IDetailApi = {
  menu(params) {
    return http.get('/PhotoMenu/allList', params)
  },
  menuImg(data) {
    return http.post('/PhotoMenu/getImg', data)
  },
  img(id) {
    return http.post('/photo/allImgList', {
      id
    })
  },
  detail(id) {
    return http.get('/photo/detail', {
      id
    })
  },
  coll(data) {
    return http.post('/photo/coll', data)
  },
  view(id) {
    return http.post('/PhotoPc/detailView', {
      id
    })
  },
  buy(id) {
    return http.post('/Photo/buy', {
      id
    })
  },
  user(id) {
    return http.post('/Photo/photoUser', {
      id
    })
  },
  replyUser(id) {
    return http.post('/Photo/photoReplyUser', {
      id
    })
  }
}

export default detailApi
